﻿using AutoMapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AuthTemplate.Infrastructure.AutoMapper
{
    public static class MapperExtensions
    {
        public static T Map<T>(this object source)
        {
            return Mapper.Map<T>(source);
        }

        public static T Map<S, T>(this S source)
        {
            return Mapper.Map<S, T>(source);
        }
    }
}
